//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopOrderAftersaleLog, MinishopOrderAftersaleLogResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopOrderAftersaleLogList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopOrderAftersaleLogResponse>(`/uctoo/minishop_order_aftersale_log/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopOrderAftersaleLog = async (id: string) => {
  return requestClient.get<MinishopOrderAftersaleLog>(`/uctoo/minishop_order_aftersale_log/${id}`);
};

export const adductooMinishopOrderAftersaleLog = async (data: Partial<MinishopOrderAftersaleLog>) => {
  return requestClient.post<MinishopOrderAftersaleLog>('/uctoo/minishop_order_aftersale_log/add', data);
};

export const edituctooMinishopOrderAftersaleLog = async (data: Partial<MinishopOrderAftersaleLog>) => {
  return requestClient.post<MinishopOrderAftersaleLog>('/uctoo/minishop_order_aftersale_log/edit', data);
};

export const deleteuctooMinishopOrderAftersaleLog = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_order_aftersale_log/del', { id });
};
